package com.fuqi.android.zhongcai.base.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.fuqi.android.zhongcai.base.ApiUrl;
import com.fuqi.android.zhongcai.base.request.result.RegisterResult;
import com.fuqi.framework.network.api.AbsRequest;
import com.fuqi.framework.network.params.BaseParams;

/*
*  app用户注册接口
* */


public class RegisterApi extends AbsRequest<RegisterApi.RegisterParams, RegisterResult> {

    public RegisterApi(RegisterParams msgVerifyCodeParams, Listener<RegisterResult> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getRegisertUrl(), msgVerifyCodeParams, listener, errorListener, RegisterResult.class);
    }


    public static class RegisterParams extends BaseParams {

        public static final String PHONE = "PHONE";
        public static final String PASSWORD = "PASSWORD";
        public static final String VERYFY_CODE = "VERYFY_CODE";

        public RegisterParams(String phone,String password,String veryfyCode) {

            put(PHONE, phone);
            put(PASSWORD, password);
            put(VERYFY_CODE , veryfyCode);
        }
    }

}
